/*
 * @Author: xuhua
 * @Date: 2023-09-16 19:44:15
 * @LastEditors: xuhua
 * @LastEditTime: 2023-09-16 19:46:11
 * @FilePath: /v3-element-admin/src/hooks/useAssetsImg.ts
 * @Description: 使用assets/images文件夹下图片
 */
export function useAssetsImg(url: string) {
	if (!url) return "";
	return new URL(`../assets/images/${url}`, import.meta.url).href;
}
